@import 'reset';
@import 'base';

@font-face {
    font-family: 'wwt';
    src: url(../assert/fonts/wwt.TTF);
}

html,
body {
    width: 100%;
    height: 100%;
}

.hide {
    display: none;
}

.container {
    width: 100%;
    height: 100%;
    background: url(../assert/images/cow_bg.png);
    background-size: cover;
    overflow: hidden;
    z-index: -20;
}

header {
    position: relative;
    .title {
        position: absolute;
        @include px2rem('width', 717);
        @include px2rem('height', 207);

        @include px2rem('left', 20);
        @include px2rem('top', 30);
    }
    .music {
        position: absolute;
        @include px2rem('width', 65);
        @include px2rem('height', 65);
        @include px2rem('left', 668);
        @include px2rem('top', 15);
    }
}

.content {
    position: absolute;
    background: url(../assert/images/cow-body.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    @include px2rem('height', 1005);
    left: 0;
    bottom: 0;
    z-index: 0;
}

/*分数展示*/
.score {
    position: absolute;
    text-align: center;
    font-family: 'wwt';
    @include px2rem('bottom', 955);
    width: 100%;
    @include px2px('font-size',48);
    color: #067de7;
    z-index: 20;
}


/*玻璃遮罩*/
.glass {
    position: absolute;
    z-index: 10;
    @include px2rem('width', 522);
    @include px2rem('height', 242);
    @include px2rem('left', 30);
    @include px2rem('bottom', 1206-620);
}




/*灯座*/
.cow-seat {
    position: absolute;
    @include px2rem('width', 95);
    @include px2rem('height', 281);
    @include px2rem('left', 594);
    @include px2rem('bottom', 1206-640);
}


/*go杆*/
.go-bar {
    position: absolute;
    @include px2rem('width', 23);
    @include px2rem('height', 47);
    @include px2rem('left', 630);
    @include px2rem('bottom', 1206-453-47);
}

/*go按钮*/
.go {
    position: absolute;
    @include px2rem('width', 141);
    @include px2rem('height', 139);
    @include px2rem('left', 574);
    @include px2rem('bottom', 1206-328-139);
    z-index: 100;
}


/*指示灯*/

.light-on,
.light-off {
    position: absolute;
    @include px2rem('width', 71);
    @include px2rem('height', 39);
    @include px2rem('left', 606);
    @include px2rem('bottom', 1206-587-39);
}


/*5个按钮*/

.button-group {
    position: absolute;
    @include px2rem('width', 240);
    @include px2rem('height', 1036+105-716);
    @include px2rem('left', 56);
    @include px2rem('bottom', 1206-1036-120);
    display: flex;
    flex-direction: column;
    div {
        flex: 1 1;
        display: flex;
        flex-direction: column;
        button {
            font-family: "wwt";
            font-weight: bold;
            flex: 1 1;
            background: white;
            border-radius: 20px;
            margin-bottom: 10px;
            box-shadow: 2px 2px 2px 2px #ccc;
        }
    }
    .three-btn button {
        color: #808081;
        @include px2rem('font-size', 48);
        span {
            @include px2rem('font-size', 32);
            vertical-align: middle;
        }
        user-select: none;
        &.avaible {
            color: #fc7700;
            &:active,&.active {
                background: #ffef66;
                color: #fc7700;
                box-shadow: 0 4px 0px 2px inset;
            }
        }
    }
    .two-btn button {
        color: #808081;
        font-weight: bold;
        @include px2rem('font-size', 72);
        &:first-child {
            color: #067de7;
        }
        &.avaible {
            color: #ff2155;
        }
    }
}


/*三列小牛*/

.cow-columns {
    position: absolute;
    @include px2rem('width', 420);
    @include px2rem('height', 240);
    @include px2rem('left', 88);
    @include px2rem('bottom', 1206-366-256);

    overflow: hidden;
    ul {
        position: absolute;

        @include px2rem('bottom', -116*0.5);
        li {
            @include px2rem('padding-left', 20);
            font-family: 'wwt';
            font-weight: bold;
            color: #0b98ee;
            display: block;
            text-align: center;
            /*border: 1px solid;*/
            @include px2rem('height', 116);
            @include px2rem('line-height', 116);
            box-sizing: border-box;
            img {
                height: 90%;
            }
        }
        &:nth-child(2) {
            left: 33.3%;
        }
        &:nth-child(3) {
            left: 66.6%;
        }
    }
}



/*三列滚动动画*/

@keyframes rolldown {
    100% {
        @include px2rem('bottom', -116*11.5);
    }
}

.rolldown {
    animation-name: rolldown;
    animation-timing-function: linear;
    animation-iteration-count: 6;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
}


/*出票地方*/

.ticket-container {
    position: absolute;
    @include px2rem('width', 355);
    @include px2rem('height', 388);
    @include px2rem('left', 343);
    @include px2rem('bottom', 1206-740-394);
    padding: 0;
    overflow: hidden;
    .ticket {
        @include px2rem('width', 355);
        @include px2rem('height', 394);
        position: absolute;
        bottom: 100%;
    }
}